package top.purity.server.user.service.convert;

import top.purity.server.user.controller.vo.UserInfoVO;
import top.purity.server.user.domain.User;
import top.purity.server.user.feign.output.dto.AddUserDTO;
import top.purity.server.user.feign.output.dto.LoginDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @version 1.0
 * @Author Lmh
 * @Description
 * @CreateTime 2023-09-24 19:04
 */

@Mapper
public interface AccountConvert {

    /**
     * 实例
     */
    AccountConvert INSTANCE = Mappers.getMapper(AccountConvert.class);

    UserInfoVO convertToUserInfoVo(User user);

    LoginDTO convertToLoginDto(User user);

    User convertToDo(AddUserDTO dto);

}
